package com.hgkj.cloud.base.domain;

import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Map;

/*心检用户信息*/
public class EUser implements Serializable {

	private static final long serialVersionUID = -69190781534912882L;
	/**
	 * 用户uuid
	 */
	private String uuid;
	/**
	 * 昵称
	 */
	private String nick_name;
	/**
	 * 登录名
	 */
	private String user_name;
	/**
	 * 登录密码
	 */
	private String user_pwd;
	/**
	 * 用户头像
	 */
	private String user_logo;
	/**
	 * 性别
	 */
	private Integer user_gender;
	/**
	 * 出生日期
	 */
	private Long user_birth;
	/**
	 * 真实姓名
	 */
	private String real_name;
	/**
	 * 用户联系电话
	 */
	private String user_phone;
	/**
	 * 身份证号码
	 */
	private String user_id_card;
	/**
	 * 用户所在地区所属 10：城市（未选大中小） 20：农村（未选几类） 11：大城市 12：中小城市 21：一类农村 22：二类农村 23：三类农村
	 * 24：四类农村
	 */
	private String user_location;
	/**
	 * 文化程度
	 */
	private String user_education;
	/**
	 * 对应租户id
	 */
	private Long tenant_id;
	/**
	 * 绑定账号，用于关联账号信息
	 */
	private String bind_account;
	/**
	 * 渠道编码
	 */
	private String channel_id;
	/**
	 * 关联渠道的时间
	 */
	private Date channel_time;
	/**
	 * 微信公众号openid
	 */
	private String open_id;
	/**
	 * 微信unionid
	 */
	private String union_id;
	/**
	 * 小程序openid
	 */
	private String mini_openid;
	/**
	 * 微信app登录openid
	 */
	private String app_openid;
	/**
	 * 国家
	 */
	private String country;
	/**
	 * 省
	 */
	private String province;
	/**
	 * 城市
	 */
	private String city;
	/**
	 * 关注状态 0：未关注 1：已关注 2：取消关注
	 */
	private Integer follow_status;
	/**
	 * 是否可用，1：可用 0：不可用
	 */
	private Integer enabled;
	/**
	 * 创建时间
	 */
	private Date create_date;

	private String create_date_string;
	/**
	 * 'app授权，1为授权
	 */
	private Integer permission;
	/**
	 * 手机操作系统
	 */
	private String phone_sys;
	/**
	 * 手机版本号
	 */
	private String phone_version;
	/**
	 * 手机厂商
	 */
	private String phone_brand;
	/**
	 * 手机型号
	 */
	private String phone_model;
	/**
	 * imei号
	 */
	private String phone_imei;

	/**
	 * 渠道名称
	 */
	private String channel_name;

	/**
	 * 渠道请求域名地址
	 */
	private String channel_url;

	private String apple_id;

	private String user_fingerprint;

	private Long framework_id;

	private String framework_tree_path;

	private Integer psw_changed;

	private String exist_ext_flag;

	private String framework_name;
	private String whole_name;
	private String deviceId;
	private Long user_id;
	private String height;
	private String weight;

	private String ext_json;
	private String operator;
	private String channel_code;


	private transient String createDate;// 日期
	private transient int age;// 年龄
	private transient String valid_date;// 会员过期时间
	private transient Integer status;   // 当前是否使用床垫状态
	private transient String tenant_name;  //当前单位名称
	private transient String last_usetime; //最近一次使用时间
	private transient String report_id;    //睡眠、读心仪或知心宝 报告对应id
	private transient boolean keys = false; //移动端登录是否弹出问答
	private transient Map<String, Object> exmap;//扩展map，以后临时传递其他定制值时可以在此字段里存储

	private String birth_date;
	String	user_task_status;
	String	task_info_uuids;

	public String getDeviceId() {
		return deviceId;
	}

	public void setDeviceId(String deviceId) {
		this.deviceId = deviceId;
	}

	public boolean isKeys() {
		return keys;
	}

	public void setKeys(boolean keys) {
		this.keys = keys;
	}

	public String getUser_task_status() {
		return user_task_status;
	}

	public void setUser_task_status(String user_task_status) {
		this.user_task_status = user_task_status;
	}

	public String getTask_info_uuids() {
		return task_info_uuids;
	}

	public void setTask_info_uuids(String task_info_uuids) {
		this.task_info_uuids = task_info_uuids;
	}

	public String getUuid() {
		return uuid;
	}

	public void setUuid(String uuid) {
		this.uuid = uuid;
	}

	public String getNick_name() {
		return nick_name;
	}

	public void setNick_name(String nick_name) {
		this.nick_name = nick_name;
	}

	public String getUser_name() {
		return user_name;
	}

	public void setUser_name(String user_name) {
		this.user_name = user_name;
	}

	public String getUser_pwd() {
		return user_pwd;
	}

	public void setUser_pwd(String user_pwd) {
		this.user_pwd = user_pwd;
	}

	public String getUser_logo() {
		return user_logo;
	}

	public void setUser_logo(String user_logo) {
		this.user_logo = user_logo;
	}

	public Integer getUser_gender() {
		return user_gender;
	}

	public void setUser_gender(Integer user_gender) {
		this.user_gender = user_gender;
	}

	public Long getUser_birth() {
		return user_birth;
	}

	public void setUser_birth(Long user_birth) {
		this.user_birth = user_birth;
	}

	public String getReal_name() {
		return real_name;
	}

	public void setReal_name(String real_name) {
		this.real_name = real_name;
	}

	public String getUser_phone() {
		return user_phone;
	}

	public void setUser_phone(String user_phone) {
		this.user_phone = user_phone;
	}

	public String getUser_id_card() {
		return user_id_card;
	}

	public void setUser_id_card(String user_id_card) {
		this.user_id_card = user_id_card;
	}

	public String getUser_location() {
		return user_location == null ? "11" : user_location;
	}

	public void setUser_location(String user_location) {
		this.user_location = user_location == null ? "11" : user_location;
	}

	public String getUser_education() {
		return user_education;
	}

	public void setUser_education(String user_education) {
		this.user_education = user_education;
	}

	public Long getTenant_id() {
		return tenant_id;
	}

	public void setTenant_id(Long tenant_id) {
		this.tenant_id = tenant_id;
	}

	public String getBind_account() {
		return bind_account;
	}

	public void setBind_account(String bind_account) {
		this.bind_account = bind_account;
	}

	public String getChannel_id() {
		return channel_id;
	}

	public void setChannel_id(String channel_id) {
		this.channel_id = channel_id;
	}

	public Date getChannel_time() {
		return channel_time;
	}

	public void setChannel_time(Date channel_time) {
		this.channel_time = channel_time;
	}

	public String getOpen_id() {
		return open_id;
	}

	public void setOpen_id(String open_id) {
		this.open_id = open_id;
	}

	public String getUnion_id() {
		return union_id;
	}

	public void setUnion_id(String union_id) {
		this.union_id = union_id;
	}

	public String getMini_openid() {
		return mini_openid;
	}

	public void setMini_openid(String mini_openid) {
		this.mini_openid = mini_openid;
	}

	public String getApp_openid() {
		return app_openid;
	}

	public void setApp_openid(String app_openid) {
		this.app_openid = app_openid;
	}

	public String getCountry() {
		return country;
	}

	public void setCountry(String country) {
		this.country = country;
	}

	public String getProvince() {
		return province;
	}

	public void setProvince(String province) {
		this.province = province;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public Integer getFollow_status() {
		return follow_status;
	}

	public void setFollow_status(Integer follow_status) {
		this.follow_status = follow_status;
	}

	public Integer getEnabled() {
		return enabled;
	}

	public void setEnabled(Integer enabled) {
		this.enabled = enabled;
	}

	public Date getCreate_date() {
		return create_date;
	}

	public void setCreate_date(Date create_date) {
		this.create_date = create_date;
	}

	public String getCreate_date_string() {
		SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
		if (create_date == null) {
			return null;
		}
		return sdf.format(create_date);
	}

	public void setCreate_date_string(String create_date_string) {
		this.create_date_string = create_date_string;
	}

	public String getCreateDate() {
		return createDate;
	}

	public void setCreateDate(String createDate) {
		this.createDate = createDate;
	}

	public Integer getAge() {
		return age;
	}

	public void setAge(Integer age) {
		this.age = age;
	}

	public Integer getPermission() {
		return permission;
	}

	public void setPermission(Integer permission) {
		this.permission = permission;
	}

	public String getValid_date() {
		return valid_date;
	}

	public void setValid_date(String valid_date) {
		this.valid_date = valid_date;
	}

	public String getPhone_sys() {
		return phone_sys;
	}

	public void setPhone_sys(String phone_sys) {
		this.phone_sys = phone_sys;
	}

	public String getPhone_version() {
		return phone_version;
	}

	public void setPhone_version(String phone_version) {
		this.phone_version = phone_version;
	}

	public String getPhone_brand() {
		return phone_brand;
	}

	public void setPhone_brand(String phone_brand) {
		this.phone_brand = phone_brand;
	}

	public String getPhone_model() {
		return phone_model;
	}

	public void setPhone_model(String phone_model) {
		this.phone_model = phone_model;
	}

	public String getPhone_imei() {
		return phone_imei;
	}

	public void setPhone_imei(String phone_imei) {
		this.phone_imei = phone_imei;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getChannel_name() {
		return channel_name;
	}

	public void setChannel_name(String channel_name) {
		this.channel_name = channel_name;
	}

	public String getChannel_url() {
		return channel_url;
	}

	public void setChannel_url(String channel_url) {
		this.channel_url = channel_url;
	}

	public String getTenant_name() {
		return tenant_name;
	}

	public void setTenant_name(String tenant_name) {
		this.tenant_name = tenant_name;
	}

	public String getLast_usetime() {
		return last_usetime;
	}

	public void setLast_usetime(String last_usetime) {
		this.last_usetime = last_usetime;
	}

	public String getReport_id() {
		return report_id;
	}

	public void setReport_id(String report_id) {
		this.report_id = report_id;
	}

	public String getApple_id() {
		return apple_id;
	}

	public void setApple_id(String apple_id) {
		this.apple_id = apple_id;
	}

	public String getUser_fingerprint() {
		return user_fingerprint;
	}

	public void setUser_fingerprint(String user_fingerprint) {
		this.user_fingerprint = user_fingerprint;
	}

	public Long getFramework_id() {
		return framework_id;
	}

	public void setFramework_id(Long framework_id) {
		this.framework_id = framework_id;
	}

	public String getFramework_tree_path() {
		return framework_tree_path;
	}

	public void setFramework_tree_path(String framework_tree_path) {
		this.framework_tree_path = framework_tree_path;
	}

	public Integer getPsw_changed() {
		return psw_changed;
	}

	public void setPsw_changed(Integer psw_changed) {
		this.psw_changed = psw_changed;
	}

	public String getExist_ext_flag() {
		return exist_ext_flag;
	}

	public void setExist_ext_flag(String exist_ext_flag) {
		this.exist_ext_flag = exist_ext_flag;
	}

	public void setAge(int age) {
		this.age = age;
	}

	public String getFramework_name() {
		return framework_name;
	}

	public void setFramework_name(String framework_name) {
		this.framework_name = framework_name;
	}

	public Long getUser_id() {
		return user_id;
	}

	public void setUser_id(Long user_id) {
		this.user_id = user_id;
	}

	public String getWhole_name() {
		return whole_name;
	}

	public void setWhole_name(String whole_name) {
		this.whole_name = whole_name;
	}

	public String getBirth_date() {
		return birth_date;
	}

	public void setBirth_date(String birth_date) {
		this.birth_date = birth_date;
	}

	public String getHeight() {
		return height;
	}

	public void setHeight(String height) {
		this.height = height;
	}

	public String getWeight() {
		return weight;
	}

	public void setWeight(String weight) {
		this.weight = weight;
	}

	public String getExt_json() {
		return ext_json;
	}

	public void setExt_json(String ext_json) {
		this.ext_json = ext_json;
	}

	public String getOperator() {
		return operator;
	}

	public void setOperator(String operator) {
		this.operator = operator;
	}

	public Map<String, Object> getExmap() {
		return exmap;
	}

	public void setExmap(Map<String, Object> exmap) {
		this.exmap = exmap;
	}

	public String getChannel_code() {
		return channel_code;
	}

	public void setChannel_code(String channel_code) {
		this.channel_code = channel_code;
	}
}
